//
//  E7FrameInfo.h
//  EndlessBattle
//
//  Created by cc on 12-4-28.
//  Copyright (c) 2012年 PalmGame. All rights reserved.
//

#ifndef EndlessBattle_E7FrameInfo_h
#define EndlessBattle_E7FrameInfo_h

#include "E7AnimationDefine.h"

class CE7FrameInfo
{
private:
    typedef enum
    {
        FT_NORMAL,
        FT_SPRITE,
        FT_COPY,
    } eType ;
public:
    CE7FrameInfo() ;
    ~CE7FrameInfo() ;

public:
    void Show() ;
    void Hide() ;

private:
    eType m_eFlag ;

// normal.
public:
    void SetInfo(CCSpriteBatchNode* pSheet, CCRect rcTex, CCPoint pos, float rotate, float scale) ;
private:
    CCSprite*    m_pInfo ;

// sprite.
public:
    void SetInfo(CCNode* pItem, CCPoint pos, float rotate, float scale, GLbyte alpha) ;
private:
    CCNode*      m_pItem ;
    CCPoint      m_pPos ;
    float        m_fRotate ;
    float        m_fScale ;
    GLbyte       m_bAlpha ;

// copy
public:
    void SetInfo(CCSpriteBatchNode* pSheet, CCRect rcTexL, CCPoint posL, CCRect rcTexR, CCPoint posR) ;
private:
    CCSprite*    m_pLeft ;
    CCSprite*    m_pRight ;
} ;

#endif

























